package com.coolingme.kpi;

/**
 * CTO关心工程师代码量和产品经理的产出
 *
 * @author wangyue
 * @date 2020/10/10 10:22
 */
public class CTOVisitor implements IVisitor {
    @Override
    public void visitor(Engineer engineer) {
        System.out.println(engineer.name + "的代码量为：" + engineer.getCodeLines());
    }

    @Override
    public void visitor(Manager manager) {
        System.out.println(manager.name + "的产品量为：" + manager.getProducts());
    }
}
